package com.sixteen.ordering_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sixteen
 * @since 2022-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DishOrderMiddle implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品订单中间表
     */
    @TableId(value = "dish_order_middle_id", type = IdType.AUTO)
    private Integer dishOrderMiddleId;

    /**
     * 菜品id
     */
    private Dish dish;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 菜品数量
     */
    private Integer number;

    private String remark;

    public Integer getDishOrderMiddleId() {
        return dishOrderMiddleId;
    }

    public void setDishOrderMiddleId(Integer dishOrderMiddleId) {
        this.dishOrderMiddleId = dishOrderMiddleId;
    }

    public Dish getDish() {
        return dish;
    }

    public void setDish(Dish dish) {
        this.dish = dish;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "DishOrderMiddle{" +
                "dishOrderMiddleId=" + dishOrderMiddleId +
                ", dish=" + dish +
                ", orderId=" + orderId +
                ", number=" + number +
                ", remark='" + remark + '\'' +
                '}';
    }
}
